package com.qf.blog.web.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_user")
public class UserEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String salt;

    private String email;
    private Integer type;

    private Integer status; // 1:未激活，2：已激活，3：冻结
    private String activationCode;
    private String headerUrl;

//    @TableField(value = "create_time")
    private Date createTime;

}
